<!DOCTYPE html>
{% extends 'web/base_seconds.html' %}
{% load static %}

{% block title %}{{ plate.name }}{% endblock %}

{% block content %}
<div class="content_dtl fl">
    <div class="mbx">首页 · {{ plate.name }}</div>
    <div class="dtl_tit">{{ plate.name }}</div>
    <div class="con images_con">
        <ul>
            {% for new in plate.has_news.all %}
            <li>
                <a href="{% url 'web:detail_page' new.id %}" >
                    <div class="imgBox"><img src="/media/{{ new.pic }}" alt="" /></div>
                <div class="cont">
                    <span class="tit">{{ new.name }}</span>
                    <span>{{ new.content|striptags|truncatechars:"15" }}</span>
                </div>
                </a>
            </li>
            {% endfor %}
        </ul>
    </div>
</div>
{% endblock %}